import serverRequest from "@/utils/server-request.ts";

export function loginService(account:string, password:string) {
    return serverRequest({
        url: '/user/login',
        method: 'POST',
        data: {account, password},
    })
}

export function logoutService() {
    return serverRequest({
        url: '/user/logout',
        method: 'DELETE'
    })
}